##################################################
# Graphics support part.                         #
##################################################

set(GRAPHICS_DIR ${BAL_DIR}/Graphics/WebCore)

create_include_link(${GRAPHICS_DIR}/WK BAL)

if(USE_GRAPHICS_GTK)
    create_include_link(${GRAPHICS_DIR}/Cairo BAL)
    
    aux_source_directory(${GRAPHICS_DIR}/Gtk WEBCORE_SRC)
    aux_source_directory(${GRAPHICS_DIR}/Cairo WEBCORE_SRC)
endif(USE_GRAPHICS_GTK)

if(USE_GRAPHICS_QT)
    create_include_link(${GRAPHICS_DIR}/Qt BAL)

    aux_source_directory(${GRAPHICS_DIR}/Qt WEBCORE_SRC)
endif(USE_GRAPHICS_QT)

if(USE_GRAPHICS_SDL)
    create_include_link(${GRAPHICS_DIR}/SDL BAL)

    aux_source_directory(${GRAPHICS_DIR}/SDL WEBCORE_SRC)
endif(USE_GRAPHICS_SDL)

# Joaquim - OWB Skia Porting
if(USE_GRAPHICS_SKIA)
    create_include_link(${GRAPHICS_DIR}/skia BAL)

    aux_source_directory(${GRAPHICS_DIR}/skia WEBCORE_SRC)
endif(USE_GRAPHICS_SKIA)

aux_source_directory(${GRAPHICS_DIR}/WK WEBCORE_SRC)

if(ENABLE_FILTERS)
    create_include_link(${GRAPHICS_DIR}/WK/filters BAL)
    aux_source_directory(${GRAPHICS_DIR}/WK/filters WEBCORE_SRC)
endif(ENABLE_FILTERS)
